package com.example.doubledb.service;


import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.example.doubledb.entity.User;
import com.example.doubledb.repository.UserMapper;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@RequiredArgsConstructor
@DS("master")
public class UserService {

    private final UserMapper userMapper ;

    public List<User> selectList(User user) {
        return userMapper.selectList(new QueryWrapper<>(user));
    }



}
